<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:107:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/public/../application/admin/view/facrm/apps/notice/index.html";i:1676906865;s:88:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/layout/default.html";i:1676906865;s:85:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/meta.html";i:1676906865;s:87:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/script.html";i:1676906865;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                



<div class="panel panel-default panel-intro">
    <div class="panel-heading">

        <?php echo build_heading(null,FALSE); ?>
        <div class="panel-lead">
            <span class="pull-right-container"> <a class="label pull-right bg-purple btn-dialog"
                data-url="facrm/notices/index"  title="<?php echo __('通知日志'); ?>">
                <i class="fa fa-bell-o fa-fw fa-fw"></i>通知日志
            </a>
            </span>
            <em> <?php echo __('通用通知'); ?></em>

            </div>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <table class="table table-striped">
                        <thead>
                        <tr>
                            <th>通知类型</th>

                            <?php if(is_array($notice_types) || $notice_types instanceof \think\Collection || $notice_types instanceof \think\Paginator): $i = 0; $__LIST__ = $notice_types;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <th>
                                <?php switch($vo): case "Mp": ?><?php echo __('公众号'); break; case "Min": ?><?php echo __('小程序'); break; case "Email": ?><?php echo __('邮箱'); break; case "WXWork": ?><?php echo __('企业微信'); break; case "Dingding": ?><?php echo __('钉钉'); break; endswitch; ?>
                            </th>
                            <?php endforeach; endif; else: echo "" ;endif; ?>



                        </tr>
                        </thead>
                        <tbody>
                        <?php $setting=new \app\admin\model\facrm\Setting(); if(is_array($data_temp) || $data_temp instanceof \think\Collection || $data_temp instanceof \think\Paginator): $i = 0; $__LIST__ = $data_temp;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                        <tr>
                            <td><?php echo $vo['describe']; ?></td>
                            <?php if(is_array($notice_types) || $notice_types instanceof \think\Collection || $notice_types instanceof \think\Paginator): $i = 0; $__LIST__ = $notice_types;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;
                            $_s=$setting->where('key',$vo['key'].$v)->find();
                             ?>
                            <td>

                                <a href="<?php echo url('facrm/apps.notice/edit',['key'=>$vo['key'],'type'=>$v]); ?>"
                                   class="btn btn-xs <?php echo $_s&&$_s['status']==1?'btn-success':'btn-danger'; ?>  btn-editone btn-dialog" data-title="<?php switch($v): case "Mp": ?><?php echo __('公众号'); break; case "Min": ?><?php echo __('小程序'); break; case "Email": ?><?php echo __('邮箱'); break; case "WXWork": ?><?php echo __('企业微信'); break; case "Dingding": ?><?php echo __('钉钉'); break; endswitch; ?>-<?php echo $vo['describe']; ?>" >
                                    <i class="fa fa-cogs fa-fw"></i>
                                    <?php 

                                    if(!$_s){
                                        echo __('未设置');
                                    }else if($_s['status']!=1){
                                        echo __('已禁用');
                                    }else{
                                    echo __('修改');
                                    }
                                     ?>
                                </a>

                            </td>
                            <?php endforeach; endif; else: echo "" ;endif; ?>


                        </tr>

                        <?php endforeach; endif; else: echo "" ;endif; ?>



                        </tbody>
                    </table>


                </div>
            </div>

        </div>
    </div>
</div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
